/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-04-27
*/
package com.rzico.basics.mapper;

import com.rzico.base.BaseMapper;
import com.rzico.basics.entity.Card;
import com.rzico.basics.model.CardView;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <pre>
 *   会员卡映射类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Mapper
public interface CardMapper extends BaseMapper<Card, String> {
   List<Card> selectList(Map<String, Object> params);

   Integer addBalance(Map<String, Object> params);
   Integer decBalance(Map<String, Object> params);
   CardView summary(Long memberId);

   List<Card> getEffectiveCard(Long memberId);

   //获取企业的福利金余额
   java.math.BigDecimal getCompanyBalance(Map<String, Object> params);

   //获取企业所有批次卡
   List<Card> getComapnyCard(Map<String, Object> params);

}
